/***************************************************
 @Name :        小铭同学
 @Time :        2025-09-03
 @Email :       LiaoMingWJ233@163.com
 @Comment :     智能家居
 @FileName :    widget.h
 @Version :     1.0
****************************************************/


#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QPixmap>
#include <QDebug>


#include "device_control.h"
#include "equipment_status.h"
#include "led.h"
#include "temhum.h"

#include "tcp.h"


QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT
    
public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    
    

protected:
    LED *led_menu;
    Device_Control *Device_Control_menu;
    Equipment_Status *Equipment_Status_menu;
    TemHum *TemHum_menu;
    
    
    
    void pushButton_set(QPushButton *pushButton);
    
private slots:
    void on_exit_clicked();

    
private:
    Ui::Widget *ui;
    
    TCP* tcp;  // 添加TCP单例指针
};
#endif // WIDGET_H
